package com.haiwei.poi.word.loop;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.poi.xwpf.usermodel.XWPFTable;
import org.apache.poi.xwpf.usermodel.XWPFTableRow;

import java.util.ArrayList;
import java.util.List;

/**
 * 行组 抽象类.
 * 哪个表，从哪行到哪行
 * 1. 是下标，不是序号
 * 2. 是[],前后都是闭区间
 *
 * @date: 2022-06-27
 * @version: 1.0
 * @author: karry@haiwei.com
 */
@NoArgsConstructor
@AllArgsConstructor
public abstract class HaiweiRowGroupAbstract implements  HaiweiRowGroup {
    
    private XWPFTable table;
    
    private int startIndex;
    
    private int endIndex;
    
    public XWPFTable getTable() {
        return table;
    }
    
    public void setTable(XWPFTable table) {
        this.table = table;
    }
    
    public int getStartIndex() {
        return startIndex;
    }
    
    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }
    
    public int getEndIndex() {
        return endIndex;
    }
    
    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }
    
    @Override
    public void addRowGroup(HaiweiRowGroup rowGroup){
    }
}
